package com.consumer.controller;

import com.consumer.service.DcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LeeXyan
 * @Date 2017/7/31 0031
 * @time 17:28
 */
@RestController
public class DcController {
    @Autowired
    private DcService dcService;

    @RequestMapping("/dc")
    public String dc(@RequestParam("name")String name){
        return  dcService.dc(name);
    }
}
